#include"project.h"
#include<string.h>
#include<unistd.h>

#define NUM 101
#define STYLE '='

void project_v1()
{
    char buffer[NUM];
    memset(buffer,0,sizeof(buffer));
    const char* labble ="|/-\\";
    int len=strlen(labble);

    int cnt=0;
    while(cnt<=100)
    {
        printf("[%-100s][%d%%][%c]\r",buffer,cnt,labble[cnt%len]);
        fflush(stdout);
        buffer[cnt]=STYLE;
        cnt++;
        usleep(50000);
    }
    printf("\n");
}
